package com.kemai.view

import android.os.Bundle
import com.kemai.common.adapter.ItemClickListener
import com.kemai.common.ui.BaseActivity

class CustomizeViewActivity : BaseActivity(), ItemClickListener {
    private val studyContent = arrayOf("文字变色","流式布局","PhotoView","多指滑动")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_common_content)
        setTiTle("View")
        setAdapterContent(studyContent,CustomizeActivity@this,CustomizeActivity@this)
    }

    override fun itemClick(position: Int) {

        when(position){
            0->{//自定义变色文字
                showPage(CustomizeActivity@this,CustomizeTextViewActivity::class.java)
            }
            1->{//流式布局
                showPage(CustomizeActivity@this,CustomizeFlowLayoutActivity::class.java)
            }
            2->{//PhotoView
                showPage(CustomizeActivity@this,CustomizePhotoViewActivity::class.java)
            }
            3->{//多指滑动
                showPage(CustomizeActivity@this,CustomizeMultiPointActivity::class.java)
            }
        }

    }
}